﻿<%@ Page Language="C#" MasterPageFile="~/admin/adminMasterPage.master" AutoEventWireup="true"
    CodeFile="AddNews.aspx.cs" Inherits="admin_News" Title="Untitled Page" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>Menus</title>
    <link rel="stylesheet" type="text/css" media="screen,projection,print" href="css/layout2_setup.css" />
    <link rel="stylesheet" type="text/css" media="screen,projection,print" href="css/layout2_text.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder" runat="Server">
    <h1 class="block">
        Quản trị tin tức:
    </h1>
    
    <telerik:radajaxpanel id="pnlAddNews" runat="server" width="900px">
        
        <asp:Label ID="Label2" CssClass="left" Text="Picture" runat="server"></asp:Label>
        <asp:FileUpload ID="uploadIMG" runat="server" ValidationGroup="add" ></asp:FileUpload>
        <p/>
        <telerik:RadTextBox ID="newsPictureName" Label="Picture Name" Width="300px" 
                CssClass="field"  LabelCssClass="left" runat="server" SelectionOnFocus="SelectAll" 
                ValidationGroup="add" >
                </telerik:RadTextBox>
        <p />
        <telerik:RadComboBox ID="cbbType" runat="server" Label="Type" LabelCssClass="left" Width="300px" ValidationGroup="add" ></telerik:RadComboBox>
        <p />
        <telerik:RadComboBox ID="cbbPanel" Label="Panel" LabelCssClass="left" runat="server" Width="300px" ValidationGroup="add" ></telerik:RadComboBox>
        <p />
        <telerik:RadTextBox ID="txtTitle" Label="Title" Width="300px" CssClass="field"  
                LabelCssClass="left" runat="server" SelectionOnFocus="SelectAll" ValidationGroup="add">
                </telerik:RadTextBox>
        <p />
        <asp:Label CssClass="left" Text="Sub Content" runat="server"></asp:Label>
        <telerik:RadEditor ID="txtSubContent" runat="server" EnableViewState="true" Width="900px" Height="500px" ValidationGroup="add" /> 
        <p />
        <asp:Label ID="Label1" CssClass="left" Text="Content" runat="server"></asp:Label>
        <telerik:RadEditor ID="txtContent" runat="server" EnableViewState="true"  Width="900px" Height="800px" ValidationGroup="add" /> 
        <p />
        
        <telerik:RadButton ID="btnAddNews" runat="server" Text="- Add News -" ValidationGroup="add">
        </telerik:RadButton>
    </telerik:radajaxpanel>
    <p />
    <hr class="clear-contentunit" />
    
    
    
    <!----------------------------------------------- sử dụng ajax-------------------------------------------->
      
    <telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanelAdmin" />
    
        <!-- rad ajax manager -->
         <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="uploadIMG">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="imgNews" LoadingPanelID="RadAjaxLoadingPanelAdmin" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
        </telerik:RadAjaxManager>
</asp:Content>
